package day12.Ti.ZiFu;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Ti02 {
    public static void main(String[] args) throws IOException {
        FileReader fr=new FileReader("jinjie\\a.txt");
        FileWriter fw=new FileWriter("jinjie\\b.txt");
        char[]chars=new char[1024];
        int len;
        while ((len=fr.read(chars))!=-1){
            fw.write(chars,0,len);
        }
        fr.close();
        fw.close();
    }
}
